<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改房屋')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-house-edit" th:object="${house}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
            	<div>
	            	<label class="col-sm-2 control-label">资产编号：</label>
					<div class="col-sm-4">
			           <input name="assetsNo" th:field="*{assetsNo}" class="form-control" type="text">
			           <span class="help-block m-b-none"></span>
			       </div>
		       </div>
		       
            	<div>
	               <label class="col-sm-2 control-label">资产名称：</label>
			       <div class="col-sm-4">
			           <input name="assetsName" th:field="*{assetsName}" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
       			</div>
            
                <div>
	               <label class="col-sm-2 control-label">国标分类：</label>
			       <div class="col-sm-4">
			           <input name="assetsCategory" th:field="*{assetsCategory}" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
       			</div>
       			
               <div>
	               <label class="col-sm-2 control-label">自主分类：</label>
			       <div class="col-sm-4">
			           <input name="ownCategory" th:field="*{ownCategory}" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
				</div>
       			
       			<div>
	               <label class="col-sm-2 control-label">区域：</label>
			       <div class="col-sm-4">
			           <input name="region" th:field="*{region}" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
       			</div>
       			
               <div>
	               <label class="col-sm-2 control-label">坐落：</label>
			       <div class="col-sm-4">
			           <input name="located" th:field="*{located}" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
       			</div>
       			
       			<div>
			       <label class="col-sm-2 control-label">建筑面积(㎡)：</label>
			       <div class="col-sm-4">
			           <input name="buildArea" th:field="*{buildArea}" class="form-control" type="number" min="0" step="0.1">
			           <span class="help-block m-b-none"></span>
			       </div>
		       </div>
       			
               <div>
	               <label class="col-sm-2 control-label">取得方式：</label>
			       <div class="col-sm-4">
			           <input name="getWay" th:field="*{getWay}" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
       			</div>
       			
               <div>
	               <label class="col-sm-2 control-label">取得时间：</label>
			       <div class="col-sm-4">
			           <input name="getDate" th:field="*{getDate}" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
       			</div>
       			
       			
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "asset/house";
        $("#form-house-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-house-edit').serialize());
            }
        }
    </script>
</body>
</html>